﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;


namespace DiscountCoupon
{
    /// <summary>
    /// 优惠卡品牌
    /// </summary>
    [DataContract]
    public class CardSeller : INotifyPropertyChanged
    {
        /// <summary>
        /// 优惠卡品牌
        /// </summary>
        [DataMember]
        public int SellerId { get; set; }

        /// <summary>
        /// LOGO 地址
        /// </summary>
        [DataMember]
        public string LogoUrl { get; set; }

        /// <summary>
        /// 品牌名称
        /// </summary>
        [DataMember]
        public string SellerNamer { get; set; }

        private bool _isDisplay;
        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsDisplay //{get;set;}
        {
            get { return _isDisplay; }
            set {
                if (_isDisplay != value)
                {
                    _isDisplay = value;
                    onPropertyChanged(this, "IsDisplay");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void onPropertyChanged(object sender, string propertyName)
        { 
            if (this.PropertyChanged != null) 
            { PropertyChanged(sender, new PropertyChangedEventArgs(propertyName)); }
        }
    }
}